package com.fiona.start.base;

import java.lang.annotation.Annotation;
import java.net.InetSocketAddress;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.CountDownLatch;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fiona.common.base.config.FionaConfig;
import com.fiona.common.base.config.RpcConfig;
import com.fiona.common.extension.Extension;
import com.fiona.common.extension.ExtensionLoader;
import com.fiona.core.util.NetUtils;
import com.fiona.remoting.api.Transporter;
import com.fiona.start.IStart;
import com.fiona.start.some.StartSome;

import cn.hutool.core.net.NetUtil;

/**
 * 启动Fiona框架
 * 
 * @author huacongnan
 *
 */
@Extension(order=1)
public class BaseStartFiona implements IStart {

	private static Logger log = LoggerFactory.getLogger(BaseStartFiona.class);
	
	/**
	 * 启动Fiona框架
	 * 
	 * @param clazz
	 */
	public void start(Class<?> clazz) {
		try {

			log.info("程序启动中......");

			/* 加载框架数据 */
			StartLoad.load(clazz);

		} catch (Exception e) {
			log.error("Fiona平台运行启动失败", e);
		}
	}

}
